package com.cssy.xxkj.logic.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.byd.acegiext.domain.User;
import com.cssy.xxkj.logic.dao.LogicPurchaseItemDAO;
import com.cssy.xxkj.logic.entity.LogicPurchaseItemDO;
import com.cssy.xxkj.logic.entity.vo.LogicPurchaseItemVo;
import com.cssy.xxkj.logic.service.ILogicPurchaseItemService;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;
import com.plat.helper.SearchResult;

@Service("logicPurchaseItemService")
public class LogicPurchaseItemServiceImpl implements ILogicPurchaseItemService {

	@Resource(name = "logicPurchaseItemDAO")
	private LogicPurchaseItemDAO logicPurchaseItemDAO;
	
	@Override
	public SearchResult findListByExample(SearchConditions scs)
			throws SyBaseException {
		SearchResult rs=new SearchResult(scs);
		List<LogicPurchaseItemDO> list = logicPurchaseItemDAO.find(scs);
		rs.setRecordCount(logicPurchaseItemDAO.count(scs));
		rs.setResults(list);
		return rs;
	}
	
	@Override
	public List<LogicPurchaseItemDO> findListByMap(Map<String, Object> paramMap)
			throws SyBaseException {
		return logicPurchaseItemDAO.findListByMap(paramMap);
	}

	@Override
	public Integer delete(String id, User user) throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer update(LogicPurchaseItemDO t, User user)
			throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public LogicPurchaseItemDO save(LogicPurchaseItemDO t, User user)
			throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public LogicPurchaseItemDO findListById(String id) throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer deleteBizRemoved(String id) throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<LogicPurchaseItemVo> exportExcel(String zd001PurchaseId)
			throws SyBaseException {
		return logicPurchaseItemDAO.exportExcel(zd001PurchaseId);
	}

}
